from selenium.webdriver.common.by import By


class MyClassPageLocator:
    """TS班主任工作平台我的班级页面定位"""
    nav_my_class_loc = (By.XPATH, "//p[text()='我的班级']/..")  # 导航栏-我的班级
    search_loc = (By.XPATH, "//button[text()='搜索']")  # 搜索
    class_status_loc = (By.XPATH, "//ion-label[text()=' 开课状态 ']/..//ion-select")  # 开课状态
    finish_class_loc = (By.XPATH, "//ion-item[contains(.,'已结课')]")
    lst_body_loc = (By.XPATH, "//datatable-body[@class='datatable-body']")  # 我的班级列表数据  & 学生列表
    class_name_loc = (By.XPATH, "//span[text()=' 20210322L1春幼儿课程学习 ']")  # 列表数据课程名称定位
    job_completion_loc = (By.XPATH, "//span[text()='作业完成情况']")  # 作业完成情况
    job_completion_widow_loc = (By.XPATH, "//div[@class='bl-modal-body']")  # 作业完成情况弹窗数据定位
    cancel_loc = (By.XPATH, "//button[text()='取消']")  # 取消
    course_lst_loc = (By.XPATH, "//div[@id='course-list']")   # 课时列表
    class_info_loc = (By.XPATH, "//div[@class='card class-info']")  # 基本信息
    student_info_lst_loc = (By.XPATH, "//div[@class='list_container ng-star-inserted']")  # 班级学员-当前班级学员 列表





